/*
 * File: Fu_MoCoord.h
 *
 * Code generated for Simulink model 'Fu_MoCoord'.
 *
 * Model version                  : 1.557
 * Simulink Coder version         : 8.2 (R2012a) 29-Dec-2011
 * TLC version                    : 8.2 (Dec 29 2011)
 * C/C++ source code generated on : Sun Jun 16 13:53:03 2013
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: ARM Compatible->ARM Cortex
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_Fu_MoCoord_h_
#define RTW_HEADER_Fu_MoCoord_h_
#ifndef Fu_MoCoord_COMMON_INCLUDES_
# define Fu_MoCoord_COMMON_INCLUDES_
#include <string.h>
#include "rtwtypes.h"
#include "rtw_shared_utils.h"
#endif                                 /* Fu_MoCoord_COMMON_INCLUDES_ */

#include "Fu_MoCoord_types.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
# define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
# define rtmSetErrorStatus(rtm, val)   ((rtm)->errorStatus = (val))
#endif

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  uint32_T m_bpIndex;                  /* '<S1>/1-D Lookup Table' */
  int16_T DiscreteTimeIntegrator_DSTATE;/* '<S1>/Discrete-Time Integrator' */
  uint16_T PrevY;                      /* '<S1>/Rate Limiter' */
} D_Work_Fu_MoCoord;

/* Constant parameters (auto storage) */
typedef struct {
  /* Computed Parameter: DLookupTable_bp01Data
   * Referenced by: '<S1>/1-D Lookup Table'
   */
  uint16_T DLookupTable_bp01Data[6];

  /* Computed Parameter: DLookupTable_tableDat
   * Referenced by: '<S1>/1-D Lookup Table'
   */
  int16_T DLookupTable_tableDat[6];
} ConstParam_Fu_MoCoord;

/* Real-time Model Data Structure */
struct RT_MODEL_Fu_MoCoord {
  const char_T * volatile errorStatus;

  /*
   * Timing:
   * The following substructure contains information regarding
   * the timing information for the model.
   */
  struct {
    uint32_T clockTick0;
  } Timing;
};

/* Block states (auto storage) */
extern D_Work_Fu_MoCoord Fu_MoCoord_DWork;

/* Constant parameters (auto storage) */
extern const ConstParam_Fu_MoCoord Fu_MoCoord_ConstP;

/*
 * Exported Global Signals
 *
 * Note: Exported global signals are block signals with an exported global
 * storage class designation.  Code generation will declare the memory for
 * these signals and export their symbols.
 *
 */
extern int16_T Emi_CurQReq;            /* '<S1>/Switch1' */
extern int16_T Emi_CurrQReqFF;         /* '<S1>/1-D Lookup Table' */

/* Model entry point functions */
extern void Fu_MoCoord_initialize(void);
extern void Fu_MoCoord_step(void);

/* Real-time Model object */
extern struct RT_MODEL_Fu_MoCoord *const Fu_MoCoord_M;

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'Fu_MoCoord'
 * '<S1>'   : 'Fu_MoCoord/Fu_MoCoord'
 */
#endif                                 /* RTW_HEADER_Fu_MoCoord_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
